package com.njbdqn.buy.servlet;

import java.util.Date;

import com.njbdqn.buy.entity.Buy;
import com.njbdqn.buy.entity.Userinfos;

public class Demo {
	public static void main(String[] args) {
		Buy buy = new Buy();
		buy.setBuyno(1);
		buy.setUser(new Userinfos(1, "aa", "123", new Date()));
		buy.setBuydate(new Date());
		
		BuyService bs = new BuyService(buy);
		bs.addShop(1, 2);
	}
}
